﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Preyla
{
    public partial class FormMessageBox : Form
    {
        public FormMessageBox(string Message, string Title)
        {
            InitializeComponent();

            MessageLabel.Text = Message;

            this.Width = MessageLabel.Width + 25;

            this.Text = Title;
        }

        public FormMessageBox(string Message)
        {
            InitializeComponent();

            MessageLabel.Text = Message;

            this.Width = MessageLabel.Width + 25;
        }

        private void ButtonClose_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
